<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="uc1" TagName="CreateNewProtocolBar" Src="CreateNewProtocolBar.ascx" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.Migrated_ExemptProtocols"
    CodeFile="ExemptProtocols.aspx.cs" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ExemptProtocols</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate"></cc1:Header>
                                <cc1:HumansSubNavigation ID="humansSubNavigation" runat="server" Visible="false"></cc1:HumansSubNavigation>
                                <cc1:AnimalsSubNavigation ID="animalsSubNavigation" runat="server" Visible="false" />
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="2" width="100%" class="SearchContainer">
                        <tr>
                            <td>
                                <cc2:ExpandingPanel ID="humansSearchContainer" runat="server" ExpansionToggler="humansExpansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="humansCommonSearch" runat="server" Module="Humans" ViewOptionVisible="False"
                                                        ExtendedSearchControl="humansSearch" OnClearSelection="OnClearSelection" Field1Prompt="Protocol #:"
                                                        Field1ID="protocolNumber" Field2Prompt="Title:" Field2ID="protocolTitle" OnSearch="OnSearch"
                                                        LabPickerVisible="false" AddSinglePIToSearchCriteria="false"></cc1:CommonSearch>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc2:ExpansionToggler ID="humansExpansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="SearchDynamic">
                                            <tr>
                                                <td>
                                                    <cc1:HumansSearch ID="humansSearch" runat="server"></cc1:HumansSearch>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                                <cc2:ExpandingPanel ID="animalsSearchContainer" runat="server" ExpansionToggler="animalsExpansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="animalsCommonSearch" runat="server" Module="Animals" ViewOptionVisible="False"
                                                        ExtendedSearchControl="animalsSearch" Field1Prompt="Protocol #:" Field1ID="protocolNumber"
                                                        OnClearSelection="OnClearSelection" Field2Prompt="Title:" Field2ID="protocolTitle"
                                                        OnSearch="OnSearch" LabPickerVisible="false" AddSinglePIToSearchCriteria="false">
                                                    </cc1:CommonSearch>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc2:ExpansionToggler ID="animalsExpansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="SearchDynamic">
                                            <tr>
                                                <td>
                                                    <cc1:AnimalsSearch ID="animalsSearch" runat="server"></cc1:AnimalsSearch>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server"></cc1:SearchCriteriaDisplay>
                            </td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                                <cc2:SetFocus ID="setFocus" runat="server" FocusControl="commonSearch_protocolNumber">
                                </cc2:SetFocus>
                                <cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0">
                        <tr>
                            <td>
                                <uc1:CreateNewProtocolBar ID="newProtocolBar" runat="server"></uc1:CreateNewProtocolBar>
                            </td>
                        </tr>
                    </table>
                    <asp:Panel ID="gridContainer" runat="server">
                        <table class="PlaceBar" id="Table5" cellspacing="0" width="100%">
                            <tr>
                                <td class="PageName">
                                    Exempt Protocols | As Of&nbsp;<asp:Label ID="feedDate" runat="server"></asp:Label></td>
                                <td align="right">
                                    <cc1:InsightDownloadBar ID="downloader" runat="server"></cc1:InsightDownloadBar>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="topPager" runat="server" Visible="false" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                        OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="protocolsGrid" runat="server" Width="100%" AutoGenerateColumns="False"
                                        AllowSorting="True" AllowPaging="True" CssClass="DataGrid" AllowCustomPaging="True"
                                        OnItemCommand="OnItemCommand" OnItemCreated="OnItemCreated" OnSortCommand="OnSort">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn Visible="False" DataField="Id"></asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="AccessLevel"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ProtocolNumber" SortExpression="ProtocolNumber" ReadOnly="True"
                                                HeaderText="&lt;nobr&gt;Protocol #&lt;/nobr&gt;"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="PIName" SortExpression="PIName" ReadOnly="True" HeaderText="PI Name">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Title" SortExpression="title">
                                                <ItemTemplate>
                                                    <asp:LinkButton runat="server" CausesValidation="false" CommandName="SelectProtocol"
                                                        Text='<%# DataBinder.Eval(Container, "DataItem.TruncatedTitle") %>' ToolTip='<%# DataBinder.Eval(Container, "DataItem.Title") %>'></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Sponsor Name" SortExpression="SponsorName">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TruncatedSponsorName") %>'
                                                        ToolTip='<%# DataBinder.Eval(Container, "DataItem.SponsorName") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="OverallStatus" SortExpression="OverallStatus" ReadOnly="True"
                                                HeaderText="Overall Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ExpirationDate" SortExpression="ExpirationDate" ReadOnly="True"
                                                HeaderText="Approval Expires"></asp:BoundColumn>
                                        </Columns>
                                        <PagerStyle Visible="False"></PagerStyle>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="bottomPager" runat="server" Visible="false" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                        OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
